// constcast.cpp -- using const cast<>
#include <iostream>
using std:: cout;
using std:: endl;
void change (const int* pt, int n) ;
int main(){
	int pop1 = 38383;
	const int pop2 = pop1;//2000;为什么初始化不同就可以改变pop2常量的值？提示：常量符号表
	cout<< "pop1, pop2: "<<pop1<< "，"<<pop2 <<endl;
	change(&pop1, -103);
	change(&pop2, -103);
	cout<< "pop1, pop2: "<<pop1<< "，"<<pop2 <<endl;
	return 0;
}

void change(const int * pt, int n){
	int* pc;
	pc = const_cast<int *>(pt) ;
	*pc += n;
}
